/*
 * Copyright By ZATI
 * Copyright By 3a3c88295d37870dfd3b25056092d1a9209824b256c341f2cdc296437f671617
 * All rights reserved.
 *
 * If you are not the intended user, you are hereby notified that any use, disclosure, copying, printing, forwarding or
 * dissemination of this property is strictly prohibited. If you have got this file in error, delete it from your system.
 */

package cn.wzc.crystal.platform.support;

import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.springframework.data.annotation.*;
import org.springframework.data.relational.core.mapping.Column;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@RequiredArgsConstructor
public abstract class AbstractEntity implements Serializable {
	/**
	 * 物理主键
	 */
	@Id
	private Long id;

	/**
	 * 创建人
	 */
	@CreatedBy
	private Long createBy;

	/**
	 * 创建时间
	 */
	@CreatedDate
	private LocalDateTime createDate;

	/**
	 * 修改人
	 */
	@LastModifiedBy
	private Long lastModifiedBy;

	/**
	 * 修改时间
	 */
	@LastModifiedDate
	private LocalDateTime lastModifiedDate;

	/**
	 * 是否删除
	 */
	@Column
	private Integer isDeleted;

	/**
	 * 备注
	 */
	private String remark;


}
